// pages/jiance/home/home.js
const app = getApp()

//单词列表
var word = {};
//链接云数据库 初始化单词列表
const db = wx.cloud.database()
Page({
  data: {
    //单词
    content: "",
    //音标
    pron: "",
    //释义
    definition: "",
    //是否展示
    show: false,
    //单词集合
    words: [],
    //用户信息
    userInfo: {},
  },

  getWordList: function () {
    wx.navigateTo({
      url: '../detail/detail?type=wordList',
    })
  },
  getWrongWord: function () {
    wx.navigateTo({
      url: '../detail/detail?type=wrongWord',
    })
  },
  getJiYi: function () {
    wx.navigateTo({
      url: '../detail/detail?type=learnhistory',
    })
  },
  onLoad: function (options) {
    //初始化标题
    var title = options.title
    if (title) {
      wx.setNavigationBarTitle({
        title: title,
      })
    }
  }

})